package com.xiaojian.pick.entity;

import lombok.Data;

/**
 * 商品图片
 */
@Data
public class CommodityImg {
    private Integer id;   // id
    private String imgSrc;  // 图片地址
    private Integer commodityId; // 商品类

    public CommodityImg() {
    }

    public CommodityImg(Integer id, String imgSrc, Integer commodityId) {
        this.id = id;
        this.imgSrc = imgSrc;
        this.commodityId = commodityId;
    }

    @Override
    public String toString() {
        return "CommodityImg{" +
                "id=" + id +
                ", imgSrc='" + imgSrc + '\'' +
                ", commodityId=" + commodityId +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }
}